package com.aliyun.heiyu.powermaster.server.rotary.object.transit;

import java.util.Map;
import java.util.Objects;

/**
 * @Description 解析出来的数据
 * @Author shun.zhang
 * @Date 2019/12/5 17:00
 **/
public class TemData {
    private Integer deviceAddr;
    private Integer order;
    private int modbusAddr;
    private Map<Integer,Double> value;

    public TemData(Integer deviceAddr, Integer order, int modbusAddr, Map<Integer, Double> value) {
        this.deviceAddr = deviceAddr;
        this.order = order;
        this.modbusAddr = modbusAddr;
        this.value = value;
    }

    public TemData() {
    }

    public Integer getDeviceAddr() {
        return deviceAddr;
    }

    public void setDeviceAddr(Integer deviceAddr) {
        this.deviceAddr = deviceAddr;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public int getModbusAddr() {
        return modbusAddr;
    }

    public void setModbusAddr(int modbusAddr) {
        this.modbusAddr = modbusAddr;
    }

    public Map<Integer, Double> getValue() {
        return value;
    }

    public void setValue(Map<Integer, Double> value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "TemData{" +
            "deviceAddr=" + deviceAddr +
            ", order=" + order +
            ", modbusAddr=" + modbusAddr +
            ", value=" + value +
            '}';
    }
}
